package com.swiftride.fallback;

import com.swiftride.feign.DriverFeign;
import com.swiftride.result.R;
import org.springframework.cloud.openfeign.FallbackFactory;

public class DriverFeignFallbackFactory implements FallbackFactory<DriverFeign> {
    @Override
    public DriverFeign create(Throwable cause) {
        return new DriverFeign() {
            @Override
            public R getDriverTodayInfoDto() {
                return R.error();
            }
        };
    }
}
